const { sumUnknownTokens } = require('../helper/unknownTokens');

const vaults = [
  "0x49AC06648789d235BFc7D2108cD09594A51f584A",
  "0xDEAa7fC91e3d81C2C382Db559C29F3eb742B7B74",
  "0xC76eF284E616567d92802261d4193328f598C2d1",
  "0xd5397b85f4677E973b992680deA429fE102CA43D",
  "0xE95EB1DFcFe6E92763598A0270cE7BdadD7542C4",
  "0x27519464F504ec385F7318849a6AB544111167b9",
  "0x73a9a6F798f8664bA0F5AC2F5dD89e303fEcAa9b",
  "0x54C8e46012F9D1DEa678a945b7a70e254e48455B",
  "0x54A91965a9231e870cC0a601169d8b29b581440c",
  "0x2EE0a0731399f0d4Af3FdDBEE303e86b84cB23f7",
  "0x6d83a06194Ca237C9A157655492Cb3e6daa857c1",
  "0x5e1a727377c4F4C24b4a5BaC331D26cF3C90CBc2",
  "0x10DA15D3A4169E64b9EA51C5Ad174c03bd0625D6",
  "0x10E9fbC3b3aFFf0C330dc19778474cA7Fe17B6e3",
  "0x15cD93a074740Ee4c14a102C9e2A9D2D3F760D4F",
  "0x856Ab6A84fdD0C35cDc6B3710DEC83203B470637",
  "0x84027D689DaB82D0548FE1DA273fd68187a7C578",
  "0xc8A34969306a26907B12fD44A51DCb10EB19D47E",
  "0x161DDe5cB80564434a686311FD43e01b1B1ee5E5",
  "0xa2Fc4Ba0D10438D8B63B369D00a3bAb29c319eEC",
  "0x8C6b71B9967AfE4B633759f0714C593C2ac38e85",
  "0x9a4743E8476B2e7bF5f6d314215523c8ca8f24C5",
  "0x1226f2eBC27374aE0d66f3E91ED64c918BccEF9e",
  "0x8bF553291D2810C772ea43bBA77eDFf92191b450"
]

async function tvl(api) {
  const tokens = await api.multiCall({  abi: 'address:want', calls: vaults})
  const bals = await api.multiCall({  abi: 'uint256:balance', calls: vaults})
  api.addTokens(tokens, bals)
  return sumUnknownTokens({ api, useDefaultCoreAssets: true, resolveLP: true, })
  
}
module.exports = {
  timetravel: false,
  telos: {
    tvl
  },
}
